Skip to content

Updates for 5922 - Staff can send Group messages #5957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

smithellis
Copy link
Contributor

  • Fixes privelege escalation - 1721
  • Fixes bolded message text - 1726
  • Removes unneeded Avatars - 1724
  • Don't show a To if there is no To - 1723
  • Attempts to resolve 502 issue - 1720

* Fixes privelege escalation - 1721
* Fixes bolded message text - 1726
* Removes unneeded Avatars - 1724
* Don't show a To if there is no To - 1723
* Attempts to resolve 502 issue - 1720
set_of_user_pks_to_email_private_message = set(
Setting.objects.filter(
user__in=receivers, name="email_private_messages", value=True
).values_list("user__pk", flat=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the sake of knowledge sharing, .values_list("user", flat=True) is equivalent to .values_list("user__pk", flat=True).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah - yes, I left that when troubleshooting why this was failing. It was the value=True bit that was missing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on the value=True!

@smithellis smithellis merged commit a00369e into mozilla:main Apr 16, 2024
@smithellis smithellis deleted the pm-query-work branch April 16, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants